package com.tarena.lbs.user.pojo.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class UserLoginParam implements Serializable {
    @NotNull(message = "手机号不能为空")
    @Schema(description = "手机号", name = "phone", example = "19941253145", required = true)
    String phone;

    @NotNull(message = "密码不能为空")
    @Schema(description = "密码", name = "password", example = "123456", required = true)
    String password;
}
